package test_ptr

import "fmt"

func DoPtrArray() {
	a := []int{100, 200, 300}
	var ptr [3]*int
	for i := 0; i < len(a); i++ {
		ptr[i] = &a[i]
	}

	for i := 0; i < 3; i++ {
		fmt.Println(*ptr[i])
	}

}
